import request from "@/plugins/request";
import axios from "axios";

var pre = "/rvhealth/booking";

if (process.env.NODE_ENV !== "development") {
    pre = '/api/rvsa/rv-health' + pre;
}

// 查询体检预约列表
export function listBooking(query) {
  return request({
    url: `${pre}/list`,
    method: 'get',
    params: query
  })
}

// 新增体检预约列表
export function addBooking(data) {
  return request({
    url: `${pre}/add`,
    method: 'post',
    data: data
  })
}

// 修改体检预约列表
export function updateBooking(data) {
  return request({
    url: `${pre}/edit`,
    method: 'post',
    data: data
  })
}
